package org.csu.jpetstore_manage_system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@TableName("account")
public class Account {

    @NotBlank(message = "用户名不能为空")
    @TableId("userid")
    private String username;
    @NotBlank(message = "密码不能为空")
    @TableField(exist = false)
    private String password;
    private String email;
    private String firstname;
    private String lastname;
    private String status;

    @TableField("addr1")
    private String address1;
    @TableField("addr2")
    private String address2;
    private String city;
    private String state;
    private String zip;
    private String country;
    private String phone;

//    private String favouriteCategoryId;
//    private String languagePreference;
//    private boolean listOption;
//    private boolean bannerOption;
//    private String bannerName;
}
